package com.turing.post.datatranfer.impl;

import java.util.List;

import javax.ejb.Local;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import com.turing.post.datatranfer.util.CardkindDao;
/**
 * 老数据库卡种类表接口实现
 * @author WZD
 *
 */
@Stateless(mappedName = "datatranfer.impl.CardkindDaoImpl")
@Remote
@Local
public class CardkindDaoImpl implements CardkindDao {
	/**
	 * 实体管理器
	 */
	@PersistenceContext
	protected EntityManager _em;
	
	@SuppressWarnings("unchecked")
	@Override
	public List<Object[]> getCardkind(){
		String sql = "select cardkindid,cardkindname,remark from cardkind  order by cardkindid asc ";
		Query query = _em.createNativeQuery(sql);
		List<Object[]> obj_list = query.getResultList();
		return obj_list;
	}


}
